//
//  AllocateBulidingHeaderView.h
//  QRMaster
//
//  Created by myApple on 15/6/23.
//  Copyright (c) 2015年 myApple. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AllocateBulidingModel.h"

@class AllocateBulidingHeaderView;

@protocol AllocateBulidingHeaderViewDelegate <NSObject>

-(void)AllocateBulidingHeaderViewDidClickHeaderView:(AllocateBulidingHeaderView *)headerView;

-(void)AllocateBulidingHeaderViewDidClickSwitch:(AllocateBulidingHeaderView *)headerView;

@end

@interface AllocateBulidingHeaderView : UITableViewHeaderFooterView

@property(nonatomic,retain)AllocateBulidingModel * bmodel;

@property(nonatomic,assign)BOOL comeFrom;//来自开门权限||设置开门时间的(NO||YES)

@property(nonatomic,retain)UISwitch * selectSwitch;

@property(nonatomic,assign)id<AllocateBulidingHeaderViewDelegate>delegate;

+(instancetype)headerWithTableView:(UITableView *)tableView;

@end
